package com.qiangou.dao.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.entity.Tags;
import com.entity.Type_Tags;
import com.qiangou.dao.CreditDao;
import com.vo.CreditCard;

@Repository("creditDao")
public class CreditDaoImpl extends BaseDaoImpl<CreditCard> implements CreditDao{
	public CreditDaoImpl(){
		super.setNs("com.salesslip.mapper.BankMapper");
	}
	@Override
	public Integer getCrerditCount(List<String> tags) {
		return this.getSqlSession().selectOne(getNs()+".getCreditCount",tags);
	}
	@Override
	public List<String> getTagNames(String[] types) {
		return this.getSqlSession().selectList(getNs()+".listTagNames",types);
	}
	@Override
	public List<Type_Tags> getTypes() {
		return this.getSqlSession().selectList(getNs()+".listTypes",null);
	}
	@Override
	public List<Tags> getTagsByType(Serializable id) {
		return this.getSqlSession().selectList(getNs()+".listTagsByType",id);
	}
	@Override
	public List<Tags> getTagsBySearch(String param) {
		return this.getSqlSession().selectList(getNs()+".listTagsBySearch",param);
	}
}